package com.bluesmart.mia;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class AddDeviceNetworkActivity extends BaseActivity implements OnClickListener{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_add_device_network);
		
		((TextView) findViewById(R.id.center)).setText(getString(R.string.add_device_title));
		
		findViewById(R.id.left).setOnClickListener(this);
		findViewById(R.id.no).setOnClickListener(this);
		findViewById(R.id.yes).setOnClickListener(this);
	}
	
	@Override
	public void onClick(View arg0) {
		if(R.id.left == arg0.getId() || R.id.no == arg0.getId()) finish();
		else if(R.id.yes == arg0.getId())
		{
			startActivity(new Intent(this,AddDeviceInfoActivity.class));
			finish();
		}
	}
}
